<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>委员会成员增加</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all">
</head>
<body>

  <div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-card-header">委员会成员增加</div>
      <div class="layui-card-body" style="padding: 15px;">
        <form class="layui-form" action="" lay-filter="component-form-group">
          <div class="layui-form-item">
            <div class="cmtMbrAdd-btn" style="margin-bottom: 10px;">
              <div class="layui-inline">
              	<div class="layui-input-inline">
	                <select name="workunit" id="cmtMbrAdd-workunit" lay-verify="">
		                <option value="">请选择一个类型</option>
		                <option value="1">学校</option>
		                <option value="2">计算机学院</option>
		                <option value="3">空天学院</option>
		              </select>
              	</div>
              	<div class="layui-input-inline">
		              <input class="layui-input" name="expname" id="cmtMbrAdd-expname" placeholder="请输入姓名" autocomplete="off">
              	</div>
              </div>
              <button class="layui-btn" data-type="btnSearch">搜索</button>
            </div>
          </div>
          <div class="layui-form-item">
            <table class="layui-hide" id="cmtMbrAdd-table" lay-filter="cmtMbrAdd-table"></table> 
          </div>
					<div class="layui-form-item layui-layout-admin">
            <div class="layui-input-block">
              <div class="layui-footer" style="left: 0;">
                <button class="layui-btn" lay-submit="" lay-filter="component-form-demo1">添加</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
              </div>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>

	<script src="../../layuiadmin/layui/layui.js"></script> 
	<script>
  layui.config({
    base: '../../layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'form', 'table'], function(){
    var $ = layui.$
    ,table = layui.table
    ,admin = layui.admin
    ,layer = layui.layer
    ,form = layui.form;
    
    form.render(null, 'component-form-group');
    
	  table.render({
	    elem: '#cmtMbrAdd-table'
	    ,url: layui.setter.base + 'json/table/user.js'
	    ,cellMinWidth: 80
	    ,id: 'ID'
	    ,cols: [[
	      {type:'checkbox', fixed: 'left'}
	      ,{field:'username', title: '姓名'}
	      ,{field:'sex', title: '学院', sort: true}
        ,{field:'sign', title: '职务'}
        ,{field:'experience', title: '职称', sort: true}
	    ]]
	    ,page: true
	  });
	  
    /* 监听提交 */
    form.on('submit(component-form-demo1)', function(data){
      parent.layer.alert(JSON.stringify(data.field), {
        title: '最终的提交信息'
      })
      return false;
    });
  });
	</script> 
</body>
</html>